home *** CD-ROM | disk | FTP | other *** search
/ Belgian Amiga Club - ADF Collection / BS1 part 34.zip / BS1 part 34 / FredFish PD 310.adf / UUCP / SlowSetup.DOC < prev    next >
Text File  |  1990-01-21  |  14KB  |  412 lines

  1.  
  2.                 SLOWSETUP.DOC
  3.  
  4.                 Matthew Dillon
  5.                 891 Regal Rd.
  6.                 Berkeley, Ca. 94708
  7.  
  8.                 pacbell.PacBell.COM!sorinc!overload!dillon
  9.  
  10.  
  11.             GETTING UUCP UP AND RUNNING FOR REAL
  12.  
  13.  
  14.     This UUCP distribution in general is not for the uninitiated.  That is,
  15.     it is not user friendly.  This particular document outlines a general
  16.     installation procedure.  Be warned that there are a LOT of things you
  17.     will have to do to bring up UUCP on your machine.
  18.  
  19.     This document shows a TYPICAL setup.  You will most likely want to
  20.     modify the example to fit your own needs.  I cover all the points
  21.     though.
  22.  
  23.     (1) You made backups of the distribution floppies, right?  DO NOT
  24.     MODIFY THE DISTRIBUTION FLOPPIES.  The instructions below are
  25.     long and some are complex and you may wish to refer to the
  26.     original distribution diskettes if you accidently mess something
  27.     up.
  28.  
  29.  
  30.     (2A) Installing UUCP on a single floppy system.
  31.  
  32.     Well, it *is* possible, but difficult.    you need to make as much
  33.     space as possible available on the main floppy.
  34.  
  35.     The second distribution disk contains only the source and manual
  36.     pages.    I suggest you shuffle things around a bit.  You already
  37.     have a copy of the first distribution diskette. I suggest you
  38.     format a new disk and put the MAN directory of the second
  39.     distribution disk on it.  Note that there is a MAN directory
  40.     on the boot disk as well but this one contains only dmail.help
  41.     which you need to gain online help from dmail.
  42.  
  43.     The following executables are required on the boot floppy and
  44.     should not be moved off.  You should move as many of the remaining
  45.     executables somewhere else as you can.
  46.  
  47.         Required Executables in C
  48.  
  49.         c/dmail
  50.         c/getty
  51.         c/rmail
  52.         c/uucico
  53.         c/rnews
  54.         c/uucp
  55.         c/unbatcher
  56.         c/dme        (unless you configure your own editor)
  57.         c/sendmail
  58.         c/uux
  59.         c/uuxqt
  60.  
  61.     You will want to change the ASSIGNments in s/startup-sequence
  62.     as follows:
  63.  
  64.         Assign UUSPOOL:    UUCP:SPOOL
  65.         Assign UUMAIL:    UUCP:MAIL
  66.         Assign UUNEWS:    UUCP:MAIL/NEWS
  67.  
  68.     These directories MUST be in nonvoltile storage or your USENET
  69.     node will be unreliable.
  70.  
  71.     (2B) Installing UUCP on a duel floppy system.
  72.  
  73.     In this case very little shuffling is required.  I suggest
  74.     the second floppy be used for UUSPOOL:, UULIB:, UUMAIL:, UUNEWS:,
  75.     GETTY:, and UUPUB:.
  76.  
  77.     Format a new floppy (this will be your second floppy) and create
  78.     directories as follows:
  79.  
  80.         MakeDir df1:spool
  81.         MakeDir df1:mail
  82.         MakeDir df1:mail/news
  83.         MakeDir df1:pub
  84.         MakeDir df1:lib
  85.  
  86.     Modify the Assignments in s/startup-sequence of the boot floppy
  87.     as follows:
  88.  
  89.         Assign UUSPOOL:    df1:spool
  90.         Assign UULIB:    df1:lib
  91.         Assign UUMAIL:    df1:mail
  92.         Assign UUNEWS:    df1:mail/news
  93.         Assign GETTY:    UULIB:
  94.         Assign UUPUB:    df1:pub
  95.  
  96.     Copy df0:lib to df1:lib and either delete or rename df0:lib to
  97.     prevent confusion.  What we have done is move all dynamic storage
  98.     to df1: .. files that will change a lot or require a lot of disk
  99.     space.    Specifically, UULIB: was moved to DF1: because the
  100.     sequence number file is kept in UULIB: and this is updated for
  101.     each mail message sent.
  102.  
  103.     (2B) Installing UUCP on a Hard Drive
  104.  
  105.     Make a directory called UUCP on your hard drive somewhere.  And
  106.     Assign UUCP: to it.   Copy the contents of both distribution
  107.     floppies to your harddrive:
  108.  
  109.         (put first disk in DF0:)
  110.         1> Copy df0: UUCP: ALL CLONE
  111.         (put second disk in DF0:)
  112.         1> Copy df0: UUCP: ALL CLONE
  113.  
  114.     It is easiest to keep all the directories in one place.  Note
  115.     that a MAN directory exists on both distribution floppies, simply
  116.     merge them together.
  117.  
  118.     Merge the startup-sequence on the boot floppy into your master
  119.     startup-sequence.  Make sure you get all the Assigns and that
  120.     they are properly reassigned to the appropriate directory on
  121.     the harddisk.  Most people normally make a master UUCP: assign
  122.     as a reference point to other assigns.
  123.  
  124.  
  125.     Be sure that UUSPOOL:, UUMAIL:, UUNEWS: and UUPUB: are assigned
  126.     to your hard disk instead of ram.
  127.  
  128.     You will most likely want to run DCron and Getty from your
  129.     startup-sequence.  Be sure that UUCP:C is assigned *before*
  130.     these programs are run so they pick up the appropriate path.
  131.  
  132.     If Getty interferes with any terminal program you might use
  133.     you may be forced to BREAK it.    Remember to restart it to
  134.     enable incomming UUCP calls again.
  135.  
  136.     DCron is an extremely useful utility to run, especially in
  137.     systems with hard disks.  The only thing you have to watch out
  138.     for is to be sure to BREAK it (kill it) before shutting off your
  139.     machine.  DCron writes to its log file and runs other programs
  140.     based on the date and you don't want to accidently turn off your
  141.     machine when DCron has just started up some other program that
  142.     may write to your hard disk.
  143.  
  144.     In the context of UUCP, DCron is normally used to automatically
  145.     poll systems in the wee hours while you are asleep, to trim
  146.     log files automagically, and maybe disable the modem's speaker
  147.     while you are asleep (at least, that is what I use it for).
  148.  
  149.     Most people with HDs running UUCP leave their Amiga's on 24 hours
  150.     a day.
  151.  
  152.                 Other System Directories
  153.  
  154.     Merge the mountlist into your master mountlist and copy any
  155.     devices from l that you do not already have into your
  156.     master l directory.
  157.  
  158.     merge or copy uucp:s/crontab to s:crontab and uucp:s/.edrc to
  159.     s:.edrc .
  160.  
  161.     You can ignore files in uucp:system, they are standard system
  162.     files.
  163.  
  164.         ----    --  -    -   -    -   -    -  --    ----
  165.  
  166.     (3)     Other startup-sequence efficiency considerations
  167.  
  168.     UUCP relies heavily on the Amiga's multitasking capabilities.
  169.     Most programs execute other programs.  Many programs in UUCP:C
  170.     may be made resident as shown by the pure bit being set.  You
  171.     will probably at least want to make C:RUN resident if you haven't
  172.     already.
  173.  
  174.     Depending on available RAM you may want to make certain other
  175.     progams resident.  Here are some suggestions:
  176.  
  177.         uucp:c/dme        ; run by dmail to edit mail
  178.         uucp:c/uuxqt        ; run by uucico to handle received files
  179.         uucp:c/rmail        ; run by uuxqt to handle received mail
  180.         uucp:c/sendmail     ; run by dmail to handle outgoing mail
  181.  
  182.         (note that uucp:c/sendmail and uucp:c/rmail are the same
  183.          executable just renamed)
  184.  
  185.     (4)     System requirements
  186.  
  187.     Be sure you are running at least version 1.3 of the operating
  188.     system.  The main consideration is that you are using at least
  189.     the 1.3 serial device.
  190.  
  191.     The NULL: device is required, this is in the l directory of
  192.     the boot floppy as already discussed.
  193.  
  194.     The UUSER: device is not required unless you want to start
  195.     getting fancy with the Getty.  This is mainly a programmer's
  196.     tool.
  197.  
  198.     (5)     Getty
  199.  
  200.     Normally one runs a Getty in his startup-sequence on the internal
  201.     serial port (from which you wish to receive calls).  Currently
  202.     only one Getty may be run PER SERIAL DEVICE NAME, and using other
  203.     units of a given serial device will interfere with Getty's operation.
  204.     This is due to the difficulty of implementation in Getty and will
  205.     eventually be fixed (to fix the problem I have to patch into
  206.     the OpenDevice and CloseDevice vectors).
  207.  
  208.     So for now you can really only run Getty on the internal serial
  209.     device.
  210.  
  211.     Getty does its best to not interfere with comm programs and
  212.     the like, but if a comm program refuses to run because it
  213.     can't get exclusive access to the serial port you may have
  214.     to kill the Getty by BREAKing it from a CLI.
  215.  
  216.     Refer to the manual page MAN:Getty for more information (for
  217.     floppy based systems all manual pages are on the second
  218.     distribution diskette).
  219.  
  220.     (6)     SHELL-STARTUP
  221.  
  222.     Assuming you are using the 1.3 Shell, the S:Shell-Startup file
  223.     normally contains at least a Path command and Stack command to
  224.     properly setup a newshell's path and stack.  Be sure the stack is
  225.     at least 8192 for this distribution of UUCP and add the UUCP:C (or
  226.     wherever you have placed the distribution executables) to your path
  227.     list.  Older UUCP distributions required a huge stack, this has
  228.     been fixed.
  229.  
  230.     (7)                   SITE-SETUP CONTROL FILES
  231.  
  232.     The following is a description of control and log files required
  233.     for UUCP and how you must modify them to install your system.
  234.  
  235.     (GETTY: is normally Assign'd to UULIB:)
  236.  
  237.     GETTY:Getty-Header
  238.  
  239.         This file contains the header line that is printed before a
  240.         login: prompt and is typically only two or three lines long.
  241.         The header usually contains your node name and the version of
  242.         the OS you are running under so people calling from term
  243.         programs know who you are.
  244.  
  245.         (Getty can be used to run things other than uucico)
  246.  
  247.         Modify accordingly.
  248.  
  249.     GETTY:Passwd
  250.  
  251.         The password file is used by Getty to authenticate login
  252.         requests.  In the context of UUCP, remote UUCICOs that call
  253.         your machine up will provide a login and password.    Getty
  254.         handles this and if the login is valid and the password matches
  255.         will run the appropriate program found in the password file.
  256.  
  257.         Getty also deals with such features as automatic disconnect on
  258.         timeout and logs times for all incomming and outgoing calls.
  259.  
  260.         In a serious system you should first remove all the junk
  261.         entries that come with the distribution.   You need an entry
  262.         for each remote machine you want to be able to call you.  You
  263.         do not necessarily need to give them logins that corrospond to
  264.         their machine names though this is how it is usually done.
  265.  
  266.         Other programs in the future will be able to be run from
  267.         a Getty.
  268.  
  269.         Later versions of UUCP will implement MAILER-DAEMON type
  270.         stuff like 'unknown user', in which case the password file
  271.         will be used to define which user names are valid on the
  272.         system.
  273.  
  274.     GETTY:LOGFILE
  275.  
  276.         The logfile is appended to by Getty whenever an incomming
  277.         call occurs or somebody takes over the serial port.  It
  278.         logs connect and disconnect times for incomming calls and
  279.         usage for external programs.
  280.  
  281.     UULIB:Domain
  282.  
  283.         In nearly every case you will not need this file.
  284.  
  285.         Those of you who wish to do domain routing through
  286.         their machine or have more than one default for
  287.         unknown destinations should refer to the manual
  288.         page MAN:Domains.
  289.  
  290.     UULIB:.Signature
  291.  
  292.         .Signature is used by the Mail program and normally appended
  293.         to outgoing mail.
  294.  
  295.         Modify accordingly.
  296.  
  297.     UULIB:Seq
  298.  
  299.         The Seq file should exist but otherwise not be modified by
  300.         the user (except for setting it to a "1" once a year).  This
  301.         file is atomically updated and used to provide unique filenames
  302.         and mail IDs for outgoing mail.
  303.  
  304.     UULIB:Security
  305.  
  306.         This file contains a list of allowed directories remote UUCP
  307.         transfers may read and write to.  Refer to the Security manual
  308.         page.  This file never contains the UUSPOOL: directory which
  309.         is implicitly read-write.
  310.  
  311.         You need not modify this file now but should keep it in mind.
  312.         It protects your system in as much as I have been able to
  313.         close the loopholes.  Loopholes might still exist.
  314.  
  315.     UULIB:news.distribution
  316.  
  317.         This file contains a list of news distribution idents for
  318.         various areas and must normally be modified according to
  319.         where you are.. you need to be a UUCP guru to do this.  Most
  320.         people can just leave it alone.
  321.  
  322.     UULIB:Config
  323.  
  324.         This file contains configuration information for many
  325.         executables in UUCP:C and should be modified accordingly.
  326.  
  327.         Be sure you modify at least the following entries.    REFER TO
  328.         THE 'Assigns' MANUAL PAGE.
  329.  
  330.         NodeName
  331.         UserName
  332.         RealName
  333.         NewsFeed    (not required if you don't care about news)
  334.         Organization
  335.         TimeZone
  336.         DefaultNode
  337.  
  338.         **** Take some time to pick a node name for yourself.  It
  339.          should be no more than 8 characters long.  Some UUCP sites
  340.          barf at node names longer than 6 chars so if you are not
  341.          sure of your neighbors pick one no more than 6 characters
  342.          long.    Your site name should be in lower case.
  343.  
  344.     UULIB:L.Sys
  345.  
  346.         This file contains site information for sites that may call
  347.         you up or you may call up.
  348.  
  349.         You must modify this file appropriately before you can run UUCP,
  350.         refer to the 'L.Sys' manual page.
  351.  
  352.     UULIB:Aliases
  353.  
  354.         This is a mail aliases file with aproximately the same
  355.         power as /usr/lib/aliases on UNIX systems.    You should
  356.         refer to the 'Aliases' manual page and modify this file as
  357.         appropriate for various defaults like 'postmaster'... to
  358.         whatever user name you pick for yourself.
  359.  
  360.     UUCP:S/Crontab
  361.  
  362.         This is a functional Crontab file for use with the DCron program.
  363.         This file is normally moved to S: (it is useless in UUCP:S).
  364.  
  365.     UUSPOOL:LOGFILE
  366.  
  367.         UUCICO and other programs log errors and other things to
  368.         this file.    Normally you use DCron to clean up this and
  369.         other log files once daily to keep them from getting to large.
  370.  
  371.  
  372.     (8)     TESTING / DMAIL
  373.  
  374.     You will next want to test your UUCP configuration.  If testing
  375.     with a friend's Amiga running the same distribution simply
  376.     email to him, then one of you run uucico -s<remotesystem>
  377.     just like in QuickSetup.DOC, except this time you are using
  378.     the system name he picked instead of 'test1' or 'test2'.
  379.  
  380.     If the initial tests in QuickSetup.DOC worked and the system
  381.     is not working now check the following (common problems):
  382.  
  383.         (a) the login and password in your L.Sys file (that uucico uses
  384.         to login to the remote machine) matches the login and
  385.         password in the remote machine's Getty:Passwd file.
  386.  
  387.         (b) There is an entry for your node in the remote machine's
  388.         L.Sys file and vise versa
  389.  
  390.         (c) The telephone number is correct
  391.  
  392.         (d) the node names are all in lower case
  393.  
  394.         (e) you constructed the email address correctly (nodename!user)
  395.  
  396.     I suggest you get UUCP running with a friend before getting it
  397.     running with a UNIX system as it is easier to test it with a
  398.     friend.
  399.  
  400.     Assuming you email to the user name he picked for his UULIB:Config
  401.     'UserName' entry and he did the same thing to you, entering
  402.     'dmail' without any arguments will bring up the mail shell
  403.     and allow you to read the message after transfer via UUCico
  404.     is complete.  You can check that the email actually arrived
  405.     into the right mail box in UUMAIL: by simply getting a directory
  406.     of UUMAIL:
  407.  
  408.     READ the manual page for DMail for information on the
  409.     construction of mail paths to other systems and users.
  410.  
  411.  
  412.